﻿using jQueryCSharp.ui;

namespace jQueryCSharp.Extensions
{
    public static class jQueryCSharpUIBuilderExtension
    {
        #region Accordion
        public static AccordionBuilder Accordion( this jQueryCSharpUIBuilder builder )
        {
            return new AccordionBuilder( builder );
        }

        public static AccordionBuilder Accordion( this jQueryCSharpUIBuilder builder, string identifier )
        {
            return new AccordionBuilder( builder, identifier );
        }
        #endregion


        #region Datepicker
        public static DatepickerBuilder Datepicker( this jQueryCSharpUIBuilder builder )
        {
            return new DatepickerBuilder( builder );
        }

        public static DatepickerBuilder Datepicker( this jQueryCSharpUIBuilder builder, string identifier )
        {
            return new DatepickerBuilder( builder, identifier );
        }
        #endregion


        #region tabs
        public static TabsBuilder Tabs( this jQueryCSharpUIBuilder builder )
        {
            return new TabsBuilder( builder );
        }

        public static TabsBuilder Tabs( this jQueryCSharpUIBuilder builder, string identifier )
        {
            return new TabsBuilder( builder, identifier );
        }
        #endregion


        #region Dialog
        public static DialogBuilder Dialog( this jQueryCSharpUIBuilder builder )
        {
            return new DialogBuilder( builder );
        }

        public static DialogBuilder Dialog( this jQueryCSharpUIBuilder builder, string identifier )
        {
            return new DialogBuilder( builder, identifier );
        }
        #endregion


        #region Button
        public static ButtonBuilder Button( this jQueryCSharpUIBuilder builder )
        {
            return new ButtonBuilder( builder, TípoBotao.Default );
        }

        public static ButtonBuilder Button( this jQueryCSharpUIBuilder builder, string identifier )
        {
            return new ButtonBuilder( builder, TípoBotao.Default, identifier );
        }

        public static ButtonBuilder Button( this jQueryCSharpUIBuilder builder, TípoBotao type )
        {
            return new ButtonBuilder( builder, type );
        }

        public static ButtonBuilder Button( this jQueryCSharpUIBuilder builder, TípoBotao type, string identifier )
        {
            return new ButtonBuilder( builder, type, identifier );
        }
        #endregion
    }
}
